
// type='Polygon'

export default function (map, painter, data, cx, cy, type) {

    // 绘制区域
    painter.beginPath();
    for (var i = 0; i < data.length; i++) {
        var dxy = map(data[i][0], data[i][1]);
        painter.lineTo(cx + dxy[0], cy + dxy[1]);
    }
    painter.closePath()[type]();
};
